{strip}{* utf8 öäü*}
<h1>{$smarty.config.Project_add}</h1><br />

<div style="margin-left:20px;margin-right:20px;">
	<form name="project_newform" id="project_newform" accept-charset="utf-8" onsubmit="{literal}xajax.request({ccdsfun:'ProjectNewSave',ccdsclass:'ccdsProject'},{parameters:[xajax.getFormValues('project_newform')]});{/literal}return false;">
	
	
	
		<div class="divFormFieldLabel">Name</div>
		<div class="divFormFieldInput"><input type="hidden" value="{$project_name}" name="project_name" id="project_name" class="FormFieldInput" value=""/> {$project_name} </div>
		<br style="clear:both;" />
		
		<br />
		<h2>{$smarty.config.Project_selected_classes}</h2>
	
		<table>
		<thead>
			<tr>
				<th>Extension</th>
				<th>Klasse</th>
				<th>Table</th>
			</tr>
		</thead>
		<tbody>
		{foreach from=$classes item="class"}
			<tr>
				<td>{$class.ext_name} <input type="hidden" name="class[]" value="{$class.ext_name}/{$class.class_name}" /></td>
				<td>{$class.class_name}</td>
				<td>
					{if '' == $class.tbl_name }
						{$smarty.config.Project_no_db_table}
					{else}
						{if true == $class.table_exists}
							{$smarty.config.Project_db_table_exists1} "{$class.tbl_name}" {$smarty.config.Project_db_table_exists2}
							<input type="text" name="tbl_name[{$class.class_name}]" value="{$class.tbl_name}" />
							<span class="error" id="project_new_cls_{$class.class_name}"></span>
						{else}
							{$smarty.config.Project_db_table_add1}  "{$class.tbl_name}" {$smarty.config.Project_db_table_add2}
							<input type="hidden" name="tbl_name[{$class.class_name}]" value="{$class.tbl_name}" />
						{/if}
					{/if}
				</td>
			</tr>
		{/foreach}
		</tbody>
		</table>
		<div class="divFormFieldLabel">&nbsp;</div>
		<div class="divFormFieldInput"><input type="submit" name="submitbtn" value="{$smarty.config.Project_db_save}" class="submitbtn" /></div>
		<br style="clear:both;" />
	
	
	</form>
</div>
{/strip}